package com.panfeng.xcloud.component.trace.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * zipkin Trace Properties配置
 * @author xiaobo
 * @version 1.0
 * @since 2018-08-21
 */
@ConfigurationProperties(prefix = "zipkin.trace.brave")
public class ZipkinTraceProperties {

    @Value("${spring.application.name:unknown-springcloud-microservice}")
    private String serviceName;
    private String zipkin;
    private float rate;
    private boolean enabled;

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getZipkin() {
        return zipkin;
    }

    public void setZipkin(String zipkin) {
        this.zipkin = zipkin;
    }

    public float getRate() {
        return rate;
    }

    public void setRate(float rate) {
        this.rate = rate;
    }

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	@Override
	public String toString() {
		return "ZipkinTraceProperties [serviceName=" + serviceName
				+ ", zipkin=" + zipkin + ", rate=" + rate + ", enabled="
				+ enabled + "]";
	}

}
